From: Gianfranco Costamagna Date: Thu, 7 Sep 2023 22:43:45 +0000 (+0200) Subject: Link with -latomic when mips* processor is detected X-Git-Tag: archive/raspbian/1%15.0.7-10+rpi1~1^2~71 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=4e457afd655a74381d5e941d43825d75e188d710;p=llvm-toolchain-15.git Link with -latomic when mips* processor is detected Last-Update: 2016-07-27 Gbp-Pq: Topic lldb Gbp-Pq: Name lldb-link-atomic-cmake.patch --- diff --git a/lldb/source/Utility/CMakeLists.txt b/lldb/source/Utility/CMakeLists.txt index 1a92c033fa..93909917c8 100644 --- a/lldb/source/Utility/CMakeLists.txt +++ b/lldb/source/Utility/CMakeLists.txt @@ -15,6 +15,13 @@ endif() list(APPEND LLDB_SYSTEM_LIBS ${CMAKE_DL_LIBS}) +if(CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mips" OR + CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mipsel" OR + CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "mips64el" OR + CMAKE_HOST_SYSTEM_PROCESSOR MATCHES "powerpcspe") + list(APPEND LLDB_SYSTEM_LIBS atomic) +endif() + if (CMAKE_SYSTEM_NAME MATCHES "Windows") list(APPEND LLDB_SYSTEM_LIBS ws2_32 rpcrt4) endif ()